package com.gray.freemarker.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

/**
 * Created on 2019/12/26.
 *
 * @author Grak
 * @since 1.0
 */
@Controller
@RequestMapping("/system")
public class FtlTest {

    @RequestMapping("/name")
    public String name(Map<String,Object> map) {
        map.put("name", "灰猫");
        map.put("age", 26);
        map.put("sex", 0);
        return "freemarker";
    }

    @RequestMapping("/index")
    public String name() {
        return "index";
    }
}
